package com.hualan.web.wsj;

import com.hualan.service.service.service.wsj.ArticleService;
import com.hualan.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/article")
public class ArticleController {
    @Autowired
    private ArticleService articleService;
    @RequestMapping("/listAll")
    public ResultEntity listAll()
    {
        return ResultEntity.ok(articleService.listAll());
    }

    @RequestMapping("/findLike")
    public ResultEntity findLike(String title)
    {
        return ResultEntity.ok(articleService.findLike(title));
    }
}
